<?php

include_once 'models/connexion_bdd.php';
$bdd=connect_bdd();

$id=htmlspecialchars($_GET['id']);

include_once 'models/desc_event.php';
$donnees = get_event($id); 
foreach($donnees as $cle => $donnee)
{
	$donnees[$cle]['nom'] = htmlspecialchars($donnee['nom']);
	$donnees[$cle]['description']=nl2br(htmlspecialchars($donnee['description']));
	$donnees[$cle]['chemin'] = $donnee['chemin'];
}

include 'vues/desc_event.php';
?>